import 'package:flutter/material.dart';
import 'package:flutter_taotaoshipin/widget/base_dialog.dart';

class ContactDialog extends StatelessWidget {
  const ContactDialog({super.key, this.onSuccess, this.content});

  final String? content;
  final VoidCallback? onSuccess;

  @override
  Widget build(BuildContext context) {
    return BaseDialog(
      title: '联系我们',
      onPressed: onSuccess,
      confirmBtnTitle: '复制',
      child: Padding(
        padding: const EdgeInsets.all(18),
        child: Text(
          content ?? '',
          style: TextStyle(fontSize: 16),
        ),
      ),
    );
  }
}
